package com.zaoniao.enstudy.infrastructure.convert;

import com.zaoniao.enstudy.domain.entity.ExamWords;
import com.zaoniao.enstudy.infrastructure.po.ExamWordsPo;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface ExamWordsCrt {

    ExamWordsCrt INSTANCE = Mappers.getMapper(ExamWordsCrt.class);

    ExamWords po2do(ExamWordsPo examWordsPo);

    ExamWordsPo do2po(ExamWords examWords);

    List<ExamWords> po2doList(List<ExamWordsPo> examWordsPo);

}
